package com.zhiyou100.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhiyou100.entity.ProjectProject;
import com.zhiyou100.mapper.ProjectProjectMapper;
import com.zhiyou100.mapper.ProjectProjectMapper;
import com.zhiyou100.service.inter.ProjectProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 项目模块 项目类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-10-06 11:56
 */
@Service
public class ProjectProjectServiceImpl implements ProjectProjectService {

    @Autowired
    private ProjectProjectMapper mapper;

    @Override
    public List<ProjectProject> selectPage(Page<?> page) {
        return mapper.selectPage(page);
    }

    @Override
    public int insert(ProjectProject entity) {
        return mapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return mapper.deleteById(id);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return mapper.deleteByMap(columnMap);
    }

    @Override
    public int delete(Wrapper<ProjectProject> wrapper) {
        return mapper.delete(wrapper);
    }

    @Override
    public int deleteBatchIds(Collection<? extends Serializable> idList) {
        return mapper.deleteBatchIds(idList);
    }

    @Override
    public int updateById(ProjectProject entity) {
        return mapper.updateById(entity);
    }

    @Override
    public int update(ProjectProject entity, Wrapper<ProjectProject> updateWrapper) {
        return mapper.update(entity, updateWrapper);
    }

    @Override
    public ProjectProject selectById(Serializable id) {
        return mapper.selectById(id);
    }

    @Override
    public List<ProjectProject> selectBatchIds(Collection<? extends Serializable> idList) {
        return mapper.selectBatchIds(idList);
    }

    @Override
    public List<ProjectProject> selectByMap(Map<String, Object> columnMap) {
        return mapper.selectByMap(columnMap);
    }

    @Override
    public ProjectProject selectOne(Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectOne(queryWrapper);
    }

    @Override
    public Integer selectCount(Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectCount(queryWrapper);
    }

    @Override
    public List<ProjectProject> selectList(Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectMaps(queryWrapper);
    }

    @Override
    public List<Object> selectObjs(Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectObjs(queryWrapper);
    }

    @Override
    public <E extends IPage<ProjectProject>> E selectPage(E page, Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectPage(page, queryWrapper);
    }

    @Override
    public <E extends IPage<Map<String, Object>>> E selectMapsPage(E page, Wrapper<ProjectProject> queryWrapper) {
        return mapper.selectMapsPage(page, queryWrapper);
    }

}
